redirect from one url to another htaccess

105

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^OLDDOMAIN\.com$ [NC]
RewriteRule ^(.*)$ http://NEWDOMAIN.com [R=301,L]
RewriteEngine On
RewriteRule ^(.*)$ http://newdomain.com/ [R=301]
# Redirect old file path to new file path
Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html
RewriteEngine On
Redirect 301 http://www.domain-name.com/download/?page=download http://www.domain-name.com/download/show
Redirect /download/?page=download http://www.domain-name.com/download/show

Comments

Submit
0 Comments